package gao.xiaolei.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class ClassesStoreListDto {
    private String id;

    private String name;

    private String describe;

    private Integer stage;

    private LocalDateTime beginTime;

    private LocalDateTime endTime;

    private Integer nowCount;

    private Integer minMemberCount;

    private Integer maxMemberCount;

    @JsonProperty("isHadIn")
    private boolean isHadIn;//判断当前用户是否已经加入这个班级了

    public ClassesStoreListDto(String id, String name, String describe, Integer stage, LocalDateTime beginTime, LocalDateTime endTime, Integer nowCount, Integer minMemberCount, Integer maxMemberCount, boolean isHadIn) {
        this.id = id;
        this.name = name;
        this.describe = describe;
        this.stage = stage;
        this.beginTime = beginTime;
        this.endTime = endTime;
        this.nowCount = nowCount;
        this.minMemberCount = minMemberCount;
        this.maxMemberCount = maxMemberCount;
        this.isHadIn = isHadIn;
    }

    public ClassesStoreListDto() {
    }
}
